<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template time_input_facet</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#header.boost.date_time.time_facet_hpp" title="Header &lt;boost/date_time/time_facet.hpp&gt;">
<link rel="prev" href="time_formats.html" title="Struct template time_formats">
<link rel="next" href="ostre_1_3_12_15_3_50_1_1_1.html" title="Class template ostream_time_duration_formatter">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="time_formats.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.time_facet_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ostre_1_3_12_15_3_50_1_1_1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.date_time.time_input_facet"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template time_input_facet</span></h2>
<p>boost::date_time::time_input_facet — Facet for format-based input. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#header.boost.date_time.time_facet_hpp" title="Header &lt;boost/date_time/time_facet.hpp&gt;">boost/date_time/time_facet.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> time_type<span class="special">,</span> <span class="keyword">typename</span> CharT<span class="special">,</span> 
         <span class="keyword">typename</span> InItrT <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="time_input_facet.html" title="Class template time_input_facet">time_input_facet</a> <span class="special">:</span> <span class="keyword">public</span> boost::date_time::date_input_facet&lt; time_type::date_type, CharT, std::istreambuf_iterator&lt; CharT, std::char_traits&lt; CharT &gt; &gt; &gt;
<span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">date_type</span>                                                               <a name="boost.date_time.time_input_facet.date_type"></a><span class="identifier">date_type</span><span class="special">;</span>                 
  <span class="keyword">typedef</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">time_duration_type</span>                                                      <a name="boost.date_time.time_input_facet.time_duration_type"></a><span class="identifier">time_duration_type</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">time_duration_type</span><span class="special">::</span><span class="identifier">fractional_seconds_type</span>                                        <a name="boost.date_time.time_input_facet.fracional_seconds_type"></a><span class="identifier">fracional_seconds_type</span><span class="special">;</span>    
  <span class="keyword">typedef</span> <a class="link" href="period.html" title="Class template period">boost::date_time::period</a><span class="special">&lt;</span> <span class="identifier">time_type</span><span class="special">,</span> <span class="identifier">time_duration_type</span> <span class="special">&gt;</span>                          <a name="boost.date_time.time_input_facet.period_type"></a><span class="identifier">period_type</span><span class="special">;</span>               
  <span class="keyword">typedef</span> <a class="link" href="date_input_facet.html" title="Class template date_input_facet">boost::date_time::date_input_facet</a><span class="special">&lt;</span> <span class="keyword">typename</span> <span class="identifier">time_type</span><span class="special">::</span><span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&gt;</span> <a name="boost.date_time.time_input_facet.base_type"></a><span class="identifier">base_type</span><span class="special">;</span>                 
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">duration_type</span>                                                           <a name="boost.date_time.time_input_facet.date_duration_type"></a><span class="identifier">date_duration_type</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">year_type</span>                                                               <a name="boost.date_time.time_input_facet.year_type"></a><span class="identifier">year_type</span><span class="special">;</span>                 
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">month_type</span>                                                              <a name="boost.date_time.time_input_facet.month_type"></a><span class="identifier">month_type</span><span class="special">;</span>                
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">day_type</span>                                                                <a name="boost.date_time.time_input_facet.day_type"></a><span class="identifier">day_type</span><span class="special">;</span>                  
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">string_type</span>                                                             <a name="boost.date_time.time_input_facet.string_type"></a><span class="identifier">string_type</span><span class="special">;</span>               
  <span class="keyword">typedef</span> <span class="identifier">string_type</span><span class="special">::</span><span class="identifier">const_iterator</span>                                                        <a name="boost.date_time.time_input_facet.const_itr"></a><span class="identifier">const_itr</span><span class="special">;</span>                 
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">char_type</span>                                                               <a name="boost.date_time.time_input_facet.char_type"></a><span class="identifier">char_type</span><span class="special">;</span>                 
  <span class="keyword">typedef</span> base_type::format_date_parser_type                                                 <a name="boost.date_time.time_input_facet.format_date_parser_type"></a><span class="identifier">format_date_parser_type</span><span class="special">;</span>   
  <span class="keyword">typedef</span> base_type::period_parser_type                                                      <a name="boost.date_time.time_input_facet.period_parser_type"></a><span class="identifier">period_parser_type</span><span class="special">;</span>        
  <span class="keyword">typedef</span> base_type::special_values_parser_type                                              <a name="boost.date_time.time_input_facet.special_values_parser_type"></a><span class="identifier">special_values_parser_type</span><span class="special">;</span>
  <span class="keyword">typedef</span> base_type::date_gen_parser_type                                                    <a name="boost.date_time.time_input_facet.date_gen_parser_type"></a><span class="identifier">date_gen_parser_type</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">base_type</span><span class="special">::</span><span class="identifier">special_values_parser_type</span><span class="special">::</span><span class="identifier">match_results</span>                               <a name="boost.date_time.time_input_facet.match_results"></a><span class="identifier">match_results</span><span class="special">;</span>             

  <span class="comment">// <a class="link" href="time_input_facet.html#boost.date_time.time_input_facetconstruct-copy-destruct">construct/copy/destruct</a></span>
  <span class="keyword">explicit</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_37-bb"><span class="identifier">time_input_facet</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="special">::</span><span class="identifier">size_t</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_38-bb"><span class="identifier">time_input_facet</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                            <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.format_date_parser_type">format_date_parser_type</a> <span class="special">&amp;</span><span class="special">,</span> 
                            <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.special_values_parser_type">special_values_parser_type</a> <span class="special">&amp;</span><span class="special">,</span> 
                            <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.period_parser_type">period_parser_type</a> <span class="special">&amp;</span><span class="special">,</span> 
                            <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.date_gen_parser_type">date_gen_parser_type</a> <span class="special">&amp;</span><span class="special">,</span> <span class="special">::</span><span class="identifier">size_t</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_39-bb"><span class="identifier">time_input_facet</span></a><span class="special">(</span><span class="special">::</span><span class="identifier">size_t</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36-bb">public member functions</a></span>
  <span class="keyword">void</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_1-bb"><span class="identifier">time_duration_format</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="keyword">const</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">void</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_2-bb"><span class="identifier">set_iso_format</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">void</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_3-bb"><span class="identifier">set_iso_extended_format</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">InItrT</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_4-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.period_type">period_type</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">InItrT</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_5-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">InItrT</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_6-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">InItrT</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_36_7-bb"><span class="identifier">get_local_time</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_40-bb">protected member functions</a></span>
  <span class="identifier">InItrT</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_40_1-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">time_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
             <span class="keyword">bool</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> temporal_type<span class="special">&gt;</span> 
    <span class="identifier">InItrT</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_40_2-bb"><span class="identifier">check_special_value</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">temporal_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                               <span class="identifier">char_type</span> <span class="special">=</span> <span class="char">'\0'</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_40_3-bb"><span class="identifier">parse_frac_type</span></a><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">fracional_seconds_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_41-bb">private member functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> int_type<span class="special">&gt;</span> 
    <span class="identifier">int_type</span> <a class="link" href="time_input_facet.html#id-1_3_12_15_3_49_1_1_3_41_1-bb"><span class="identifier">decimal_adjust</span></a><span class="special">(</span><span class="identifier">int_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">short</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">fractional_seconds_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">fractional_seconds_or_none_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">seconds_with_fractional_seconds_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">seconds_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">standard_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">zone_abbrev_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">zone_name_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">zone_iso_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">zone_iso_extended_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">duration_seperator</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">iso_time_format_specifier</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">iso_time_format_extended_specifier</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">default_time_input_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span> <span class="identifier">default_time_duration_format</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span><span class="special">::</span><span class="identifier">id</span> <span class="identifier">id</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.12.15.3.48.5.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.12.15.3.48.5.4.2"></a><h3>
<a name="boost.date_time.time_input_facetconstruct-copy-destruct"></a><code class="computeroutput">time_input_facet</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="id-1_3_12_15_3_49_1_1_3_37-bb"></a><span class="identifier">time_input_facet</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> format<span class="special">,</span> <span class="special">::</span><span class="identifier">size_t</span> ref_arg <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre>Constructor that takes a format string for a ptime. </li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="id-1_3_12_15_3_49_1_1_3_38-bb"></a><span class="identifier">time_input_facet</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> format<span class="special">,</span> 
                          <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.format_date_parser_type">format_date_parser_type</a> <span class="special">&amp;</span> date_parser<span class="special">,</span> 
                          <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.special_values_parser_type">special_values_parser_type</a> <span class="special">&amp;</span> sv_parser<span class="special">,</span> 
                          <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.period_parser_type">period_parser_type</a> <span class="special">&amp;</span> per_parser<span class="special">,</span> 
                          <span class="keyword">const</span> <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.date_gen_parser_type">date_gen_parser_type</a> <span class="special">&amp;</span> date_gen_parser<span class="special">,</span> 
                          <span class="special">::</span><span class="identifier">size_t</span> ref_arg <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="id-1_3_12_15_3_49_1_1_3_39-bb"></a><span class="identifier">time_input_facet</span><span class="special">(</span><span class="special">::</span><span class="identifier">size_t</span> ref_arg <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre>sets default formats for ptime, local_date_time, and <code class="computeroutput"><a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a></code>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.12.15.3.48.5.4.3"></a><h3>
<a name="id-1_3_12_15_3_49_1_1_3_36-bb"></a><code class="computeroutput">time_input_facet</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="id-1_3_12_15_3_49_1_1_3_36_1-bb"></a><span class="identifier">time_duration_format</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">char_type</span> <span class="special">*</span><span class="keyword">const</span> format<span class="special">)</span><span class="special">;</span></pre>Set the format for <code class="computeroutput"><a class="link" href="time_duration.html" title="Class template time_duration">time_duration</a></code>. </li>
<li class="listitem"><pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">void</span> <a name="id-1_3_12_15_3_49_1_1_3_36_2-bb"></a><span class="identifier">set_iso_format</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">void</span> <a name="id-1_3_12_15_3_49_1_1_3_36_3-bb"></a><span class="identifier">set_iso_extended_format</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">InItrT</span> <a name="id-1_3_12_15_3_49_1_1_3_36_4-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> ios_arg<span class="special">,</span> 
           <a class="link" href="time_input_facet.html#boost.date_time.time_input_facet.period_type">period_type</a> <span class="special">&amp;</span> p<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">InItrT</span> <a name="id-1_3_12_15_3_49_1_1_3_36_5-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> ios_arg<span class="special">,</span> 
           <span class="identifier">time_duration_type</span> <span class="special">&amp;</span> td<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">InItrT</span> <a name="id-1_3_12_15_3_49_1_1_3_36_6-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> ios_arg<span class="special">,</span> 
           <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Parses a time object from the input stream. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">InItrT</span> <a name="id-1_3_12_15_3_49_1_1_3_36_7-bb"></a><span class="identifier">get_local_time</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                      <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> ios_arg<span class="special">,</span> <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">,</span> 
                      <span class="identifier">string_type</span> <span class="special">&amp;</span> tz_str<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Expects a time_zone in the input stream. </li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.12.15.3.48.5.4.4"></a><h3>
<a name="id-1_3_12_15_3_49_1_1_3_40-bb"></a><code class="computeroutput">time_input_facet</code> protected member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="identifier">InItrT</span> <a name="id-1_3_12_15_3_49_1_1_3_40_1-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> ios_arg<span class="special">,</span> 
           <span class="identifier">time_type</span> <span class="special">&amp;</span> t<span class="special">,</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> tz_str<span class="special">,</span> <span class="keyword">bool</span> time_is_local<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> temporal_type<span class="special">&gt;</span> 
  <span class="identifier">InItrT</span> <a name="id-1_3_12_15_3_49_1_1_3_40_2-bb"></a><span class="identifier">check_special_value</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                             <span class="identifier">temporal_type</span> <span class="special">&amp;</span> tt<span class="special">,</span> <span class="identifier">char_type</span> c <span class="special">=</span> <span class="char">'\0'</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Helper function to check for special_value. <p>First character may have been consumed during original parse attempt. Parameter 'c' should be a copy of that character. Throws ios_base::failure if parse fails. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="id-1_3_12_15_3_49_1_1_3_40_3-bb"></a><span class="identifier">parse_frac_type</span><span class="special">(</span><span class="identifier">InItrT</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">InItrT</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="identifier">fracional_seconds_type</span> <span class="special">&amp;</span> frac<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Helper function for parsing a fractional second type from the stream. </li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.12.15.3.48.5.4.5"></a><h3>
<a name="id-1_3_12_15_3_49_1_1_3_41-bb"></a><code class="computeroutput">time_input_facet</code> private member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> int_type<span class="special">&gt;</span> 
  <span class="identifier">int_type</span> <a name="id-1_3_12_15_3_49_1_1_3_41_1-bb"></a><span class="identifier">decimal_adjust</span><span class="special">(</span><span class="identifier">int_type</span> val<span class="special">,</span> <span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">short</span> places<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Helper function to adjust trailing zeros when parsing fractional digits. </li></ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="time_formats.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.time_facet_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ostre_1_3_12_15_3_50_1_1_1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
